package com.warm.custom.starter;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Date: 2020/3/20 9:57
 * @Author: LChuang
 * @Description: 新建自动装配类，使用 @Configuration 和 @Bean 来进行自动装配。
 */
@Configuration
public class StarterAutoConfiguration {

    @Bean
    public String starterService(StarterProperties properties){
        System.out.println("hello world");
        return "hello";
    }
}
